package practise.mulitThreads.ConcurrentInPractice.PageRender;

import java.io.File;
import java.util.concurrent.Callable;

/**
 * Created by richard on 6/13/14.
 */
public class PageContentDownload implements Callable<String> {

    private String resourceAddress;

    public PageContentDownload(String resourceAddress) {
        this.resourceAddress = resourceAddress;
    }

    @Override
    public String call() throws Exception {
        System.out.println("DownLoad from addres :"+this.resourceAddress);
        Thread.sleep(1000);

        return "localStored"+resourceAddress;
    }
}
